This page describes all the known commands for script.txt files. I don't know how some of the commands will affect the game, if you discover any new information please e-mail me and I'll add it to this page.
This section defines the file extensions for the PSX version of the game.
Level=.PSX
File extension
for level files.
Cut=.CUT
File extension for
in game cut-scenes.
FMV=.FMV
File extension for
full motion video cut-scenes.
This section defines the file extensions for the PC version of the game.
Level=.TR4
File extension
for level files.
Cut=.TR4
File extension for
in game cut-scenes.
FMV=.BIK
File extension for
full motion video cut-scenes.
This section indicates the names of the various language files.
File=[0-7],language.txt
There are multiple File= commands in the [Language]
section. The first parameter probably indicates an internal language number that
was specified during setup. The second parameter is the name of the file that
holds all the text strings.
This section specifies various game-wide options.
LoadSave=[ENABLE |
DISABLE]
Enables loading and saving games.
Title=[ENABLE |
DISABLE]
Specifies that a [Title] section
exists.
PlayAnyLevel=[ENABLE |
DISABLE]
Enables the user to select any level when the New Game menu
option is selected.
InputTimeout=18000
Frame
rate for the game, you should leave it as 18000.
FlyCheat=[ENABLE |
DISABLE]
Enables the DOZY cheat.
Security=$55
Not sure,
probably some internal security stuff, leave it as $55.
DemoDisc=[ENABLE |
DISABLE]
Specifies that the script.txt file is for a demo, the
resulting script.dat file will only have a title level and one playable level
specified (the first one defined) regardless of how many playable levels are
defined in the script.txt file.
This section describes the fly-by level displayed at the main menu, most of the [Level] commands are valid for this section.
This section describes a playable level.
AnimatingMIP=[1-16],distance
When the game displays ANIMATING[1-16] objects, it will display the corresponding
ANIMATING[1-16]_MIP object when Lara is distance floor squares away. The MIP objects are
low-resolution polygon models that will use fewer resources.
ColAddHorizon=[ENABLE |
DISABLE]
Not sure.
Cut=#
I believe this
command will display an in game cut-scene # at the
start of the level. When you decompile a script.dat file these commands are
commented out because when the game executes this command the game will hang and
the screen will go black.
Examine=[1-3],description,$####,$####,$####,$####,$####,$####
Information
about the EXAMINE[1-3] objects. The first parameter is
the number of the EXAMINE object, the second is a text description of the object
when Lara examines it. The last six parameters are unknown, you should copy them
verbatim from the original script.txt file.
FMV=[0-99],[0-1]
Displays
a full motion video cut-scene at the start of the level, the first parameter
corresponds to the file FMV\Fmv##.bik, I'm not sure what the second parameter
represents. When you decompile a script.dat file, these command are commented
out since the game cannot display FMV cut-scenes.
Fog=red,green,blue
I'm not
sure what this command represents, it is only used by the Desert Railroad level.
Horizon=[ENABLE |
DISABLE]
The game will display a horizon and sky using the HORIZON and
SKY_GRAPHICS objects. You can modify the sky with the Layer1= , Layer2= and Lightning= commands.
Key=[1-12],description,$####,$####,$####,$####,$####,$####
Information
about the KEY[1-12] objects. The first command is
number of the the KEY object, the second is the description displayed in the
inventory screen. The last six parameters are unknown, you should copy them
verbatim from the original script.txt file.
KeyCombo=[1-8],[1-2],description,$####,$####,$####,$####,$####,$####
Information
about the KEY[1-8]_COMBO[1-2] objects. The first command is number of the the KEY
object, the second indicates which part of the key and the third is the
description displayed in the inventory screen. The last six parameters are
unknown, you should copy them verbatim from the
Layer1=red,green,blue,speed
Alters the sky texture, the red,green,blue indicates the transparency of that particular
color in the sky texture the higher the number the more of that color will show.
The speed indicates the speed and direction of the
cloud layer.
Layer2=red,green,blue,speed
Allows for a second sky texture
layer, the parameters are the same as the Layer1=
command.
Legend=string
Specifies
the text displayed on the screen at the start of a level.
LensFlare=x,y,z,red,green,blue
TBA
Level=file,sound#
Indicates the file and background sound that
is loaded for a level.
Lightning=[ENABLE |
DISABLE]
When specified for a level the background audio will include
thunder and the sky will flash to simulate lightning.
LoadCamera=,src_x,src_y,src_z,dest_x,dest_y,dest_z,room
Specifies
what to display during the processing of save games and exiting to the main
menu, if you don't specify this command the game will probably crash when you
use the Save Game, Load Game, and Exit to Title menu options. To get the values
for this command activate the DOZY cheat and position Lara then press and hold
the F1 key to get a set of numbers:
P: src_x, src_y, src_z
t: dest_x, dest_y, dest_z
r: room
You can specify LoadCamera=0,0,0,0,0,0,255 instead and the game will display Lara's current position in the level.
Mirror=room,x
Refer to the
Level Editor manual for more information on this command.
Name=string
The text
string displayed on the Select Level, Load Game and Save Game screens for the
level.
NoLevel=[ENABLE |
DISABLE]
Not sure, but it is used by The Last Revelation script.txt
file.
Pickup=[1-4],description,$####,$####,$####,$####,$####,$####
Information
about the PICKUP[1-4] objects. The first command is
number of the the PICKUP object, the second is the description displayed in the
inventory screen. The last six parameters are unknown, you should copy them
verbatim from the original script.txt file.
PickupCombo=[1-4],[1-2],description,$####,$####,$####,$####,$####,$####
Information
about the PICKUP[1-4]_COMBO[1-2] objects. The first command is number of the the PICKUP
object, the second indicates which part of the pickup and the third is the
description displayed in the inventory screen. The last six parameters are
unknown, you should copy them verbatim from the
Pulse=[ENABLE |
DISABLE]
Not sure.
Puzzle=[1-12],description,$####,$####,$####,$####,$####,$####
Information
about the PUZZLE[1-12] objects. The first command is
number of the the PUZZLE object, the second is the description displayed in the
inventory screen. The last six parameters are unknown, you should copy them
verbatim from the original script.txt file.
PuzzleCombo=[1-8],[1-2],description,$####,$####,$####,$####,$####,$####
Information
about the PUZZLE[1-8]_COMBO[1-2] objects. The first command is number of the the PUZZLE
object, the second indicates which part of the puzzle and the third is the
description displayed in the inventory screen. The last six parameters are
unknown, you should copy them verbatim from the
RemoveAmulet=[ENABLE |
DISABLE]
Not really sure, it is used by the Tomb of Semerkhet level.
ResetHUB=level#
Not really
sure, maybe which level to load when Lara dies?
ResidentCut=#,#
Displays
an in game cut-scene somewhere in the middle of the level. The executeable
distributed with the Level Editor can display these types of cut-scenes but I
don't know of any way to create new ones. I'm guessing, it requires some setup
with a CUTSCENE trigger and information contained in the file CUTSEQ.PAK.
StarField=[ENABLE |
DISABLE]
Not sure.
Timer=[ENABLE |
DISABLE]
Used by Race for the Iris, it probably requires setting up
some special triggers.
Train=[ENABLE |
DISABLE]
Used by the Desert Railroad level.
UVrotate=#
Not sure.
Weather=[ENABLE |
DISABLE]
Not sure.
YoungLara=[ENABLE |
DISABLE]
Enables the special ponytails for the young Lara model in the
Angkor Wat and Race for the Iris levels.